package ssm.blog.service;

import org.springframework.stereotype.Service;
import ssm.blog.entity.Blog;

import java.util.List;

/**
 * @program: lyon
 * @description:
 * @author: Lyon
 * @create: 2018-05-30 17:10
 **/
public interface BlogService {
    int add(Blog blog);
    int deleById(Integer id);
    int deles(List<Integer> ids);
    int updateById(Blog blog);
    Blog selectById(Integer id);
    List<Blog> getNext(Integer id,Integer statu,Integer type_id);
    List<Blog> getPre(Integer id,Integer statu,Integer type_id);
    List<Blog>listByKeyword(String keyword);
    List<Blog>listByKeywordAndTypeId(String keyword,Integer type_id);
    List<Blog>listRank(Integer statu);
    List<Blog>listBlogs(Integer statu,Integer type_id,String keyword,Boolean down);
    int count();
}
